const assessRulesSetting = resolve =>
  require(['common/src/views/midTermExamination/permissionSettings/assessRulesSetting'], resolve);//考核规则设置
const assessTimeSetting = resolve =>
  require(['common/src/views/midTermExamination/permissionSettings/assessTimeSetting'], resolve);//考核时间设置
const applicationTemplateList = resolve =>
  require(['common/src/views/midTermExamination/applicationTemplateManage/applicationTemplateList'], resolve);//模板列表
const schemeChapterView = resolve =>
  require(['common/src/views/midTermExamination/applicationTemplateManage/schemeChapterView'], resolve);//模板预览
const nameList = resolve =>
  require(['common/src/views/midTermExamination/nameListManage/nameList'], resolve);//名单管理列表
const batchManage = resolve =>
  require(['common/src/views/midTermExamination/batchManage/batchManage'], resolve);//考核批次维护
const workApply = resolve =>
  require(['common/src/views/midTermExamination/workApply/workApply'], resolve);
const approval = resolve =>
  require(['common/src/views/midTermExamination/workApply/Approval'], resolve);
const wholeProcessDraw = resolve =>
  require(['common/src/views/midTermExamination/wholeProcessDraw/wholeProcessDraw'], resolve);
const resultInput = resolve =>
  require(['common/src/views/midTermExamination/resultInput/resultInput'], resolve);//成绩录入
const resultQuery = resolve =>
  require(['common/src/views/midTermExamination/resultQuery/resultQuery'], resolve);
const midTermFinalVersionUpload = resolve =>
  require(['common/src/views/midTermExamination/finalFile/finalVersionUpload'], resolve);
const midTermFinalVersionList = resolve =>
  require(['common/src/views/midTermExamination/finalFile/requireFinalFileList'], resolve);

const layout = resolve => require(['common/src/views/layout'], resolve);


const midTermExamination = {
  path: '/midTermExamination',
  name: 'midTermExamination',
  component: layout,
  children: [
    {
      path: '/assessRulesSetting',
      name: 'assessRulesSetting',
      component: assessRulesSetting,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/assessTimeSetting',
      name: 'assessTimeSetting',
      component: assessTimeSetting,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/midTemSetList',
      name: 'midTemSetList',
      component: applicationTemplateList,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/midNameList',
      name: 'midNameList',
      component: nameList,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/schemeChapterView',
      name: 'schemeChapterView',
      component: schemeChapterView,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/midBatchManage',
      name: 'midBatchManage',
      component: batchManage,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/midWorkApply',
      name: 'midWorkApply',
      component: workApply,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/midApproval',
      name: 'midApproval',
      component: approval,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/midWholeProcessDraw',
      name: 'midWholeProcessDraw',
      component: wholeProcessDraw,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/midResultInput',
      name: 'midResultInput',
      component: resultInput,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/midResultQuery',
      name: 'midResultQuery',
      component: resultQuery,
      meta: {
        nokeepalive: false
      }
    },
    {
      path: '/midTermFinalVersionUpload',
      name: 'midTermFinalVersionUpload',
      component: midTermFinalVersionUpload,
      meta: {
        nokeepalive: true
      }
    },
    {
      path: '/midTermFinalVersionList',
      name: 'midTermFinalVersionList',
      component: midTermFinalVersionList,
      meta: {
        nokeepalive: true
      }
    }
  ]
};

export default midTermExamination;
